divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`Config for Mailguard Appliance')dnl
OSTYPE(`linux')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/aliases.local,/var/aliases/aliases.local')dnl
define(`confPRIVACY_FLAGS', `authwarnings,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
dnl define(`SMART_HOST',`smtp.your.provider')
dnl define(`LOCAL_RELAY',`relay.your.provider')dnl
EXPOSED_USER_FILE(`-o /etc/mail/exposedusers')dnl
dnl EXPOSED_USER(`root')dnl
LOCAL_USER_FILE(`-o /etc/mail/localusers')dnl
MASQUERADE_AS(`YOURDOMAIN')dnl
MASQUERADE_DOMAIN(`YOURDOMAIN')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`no_default_msa')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(mailguard)dnl
LOCAL_RULE_0
dnl# Mail addressed to mailguard appliance machine should be handled by
dnl# the ``mailguard'' manager (``custom mailer'')
R$* < @ mailguard.YOURDOMAIN.com. >	$#mailguard $@ localhost $: $1

